package org.kotboot.enums

import org.kotboot.kit.isNull

/**
 * @Description
 * @author jisong.sun
 * @datetime  18-4-28 下午4:01
 * @project-name kotcloud
 *
 * @Modify-by :
 */

enum class ESignType{
    MOB_SMS,MOB_PWD,FAILED;

    companion object {
        fun of(type:String?):ESignType {
            if(null == type) return FAILED
            for(signType:ESignType in ESignType.values()){
                if(type.toUpperCase().equals(signType.name)){
                    return signType
                }
            }
            return FAILED
        }
    }
}